//
//  CityPageModel.m
//  littleLight's Project-A
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 light. All rights reserved.
//

#import "CityPageModel.h"

@implementation CityPageModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"]) {
            self.userModel = [CityUserModel new];
            [self.userModel setValuesForKeysWithDictionary:value];
        
        
    }
    if ([key isEqualToString:@"tab_list"]) {
       
        NSMutableArray *array = value;
        self.tab_list = [NSMutableArray array];
        for (NSString *string in array) {
            [self.tab_list addObject:string];
        }
    }
    
  
}
@end
